package com.dw.model.user;

import com.dw.dao.user.UserDao;
import lombok.Data;

import java.sql.SQLException;

/**
 * 医生实体类
 */

@Data
public class Doctor {
    private int id;
    private int userId;
    private String name;
    private String gender;
    private String department;
    private String title; // 职称
    private String phone;

    // 关联的User对象(非数据库映射)
    private User user;

    // 默认构造函数
    public Doctor() {
    }

    // 带参数构造函数
    public Doctor(int userId, String name, String gender, String department, String title, String phone) {
        this.userId = userId;
        this.name = name;
        this.gender = gender;
        this.department = department;
        this.title = title;
        this.phone = phone;
    }
}